







package org.nstack.configuration.testlink.schema;

import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;



@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "reqSpec"
})
@XmlRootElement(name = "requirement-specification")
public class RequirementSpecification {

    @XmlElement(name = "req_spec", required = true)
    protected RequirementSpecification.ReqSpec reqSpec;


    public RequirementSpecification.ReqSpec getReqSpec() {
        return reqSpec;
    }


    public void setReqSpec(RequirementSpecification.ReqSpec value) {
        this.reqSpec = value;
    }


    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "scope",
        "nodeOrder",
        "requirement"
    })
    public static class ReqSpec {

        @XmlElement(required = true)
        protected String scope;
        @XmlElement(name = "node_order", required = true)
        protected String nodeOrder;
        protected List<RequirementSpecification.ReqSpec.Requirement> requirement;
        @XmlAttribute
        protected String title;
        @XmlAttribute(name = "doc_id")
        protected String docId;


        public String getScope() {
            return scope;
        }


        public void setScope(String value) {
            this.scope = value;
        }


        public String getNodeOrder() {
            return nodeOrder;
        }


        public void setNodeOrder(String value) {
            this.nodeOrder = value;
        }


        public List<RequirementSpecification.ReqSpec.Requirement> getRequirement() {
            if (requirement == null) {
                requirement = new ArrayList<RequirementSpecification.ReqSpec.Requirement>();
            }
            return this.requirement;
        }


        public String getTitle() {
            return title;
        }


        public void setTitle(String value) {
            this.title = value;
        }


        public String getDocId() {
            return docId;
        }


        public void setDocId(String value) {
            this.docId = value;
        }



        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = {
            "docid",
            "title",
            "nodeOrder",
            "description"
        })
        public static class Requirement {

            @XmlElement(required = true)
            protected String docid;
            @XmlElement(required = true)
            protected String title;
            @XmlElement(name = "node_order", required = true)
            protected String nodeOrder;
            @XmlElement(required = true)
            protected String description;


            public String getDocid() {
                return docid;
            }


            public void setDocid(String value) {
                this.docid = value;
            }


            public String getTitle() {
                return title;
            }


            public void setTitle(String value) {
                this.title = value;
            }


            public String getNodeOrder() {
                return nodeOrder;
            }


            public void setNodeOrder(String value) {
                this.nodeOrder = value;
            }


            public String getDescription() {
                return description;
            }


            public void setDescription(String value) {
                this.description = value;
            }

        }

    }

}
